// types/user.ts
export interface WxLoginParams {
  paramName: string
}

export interface WxLoginResponse {
  accessToken: string
  refreshToken: string
  expires: string
  tokenType: string
}

export interface UserListResp{
  total: number
  userList: UserModel[]
}
/**
 * 用户model
 */
export interface UserModel{
  id: number
  name?: string
  avatar?: string
  balance: string
  phone: string
  userType: UserType
  remark: string
  realName: string
}

// 用户类型枚举
export enum UserType {
  CUSTOMER = 'CUSTOMER',      // 普通客户
  BARBER = 'BARBER',        // 理发师
  ADMIN = 'ADMIN',           // VIP会员
}

// 导出默认用户对象
export const defaultUser: UserModel = {
  avatar: "https://img2.baidu.com/it/u=1915140374,4003105885&fm=253&app=138&f=JPEG?w=800&h=800",
  id: 0,
  balance: "0.00",
  phone: "点击获取微信用户信息",
  remark: "",
  realName: "",
  userType: UserType.CUSTOMER
}


